home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch12 / arch.wrl < prev    next >
Text File  |  1996-09-23  |  1KB  |  55 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # First archway
  8.     # Left Column
  9.         DEF LeftColumn Transform {
  10.             translation -2.0 3.0 0.0
  11.             children DEF Column Shape {
  12.                 appearance DEF White Appearance {
  13.                     material Material { }
  14.                 }
  15.                 geometry Cylinder {
  16.                     radius 0.3
  17.                     height 6.0
  18.                 }
  19.             }
  20.         },
  21.     # Right Column
  22.         DEF RightColumn Transform {
  23.             translation 2.0 3.0 0.0
  24.             children USE Column
  25.         },
  26.     # Archway span
  27.         DEF ArchwaySpan Transform {
  28.             translation 0.0 6.05 0.0
  29.             children Shape {
  30.                 appearance USE White
  31.                 geometry Box {
  32.                     size 4.6 0.4 0.6
  33.                 }
  34.             }
  35.         },
  36.     # Left Roof
  37.         DEF LeftRoof Transform {
  38.             translation -1.15 7.12 0.0
  39.             rotation 0.0 0.0 1.0  0.524
  40.             children DEF Roof Shape {
  41.                 appearance USE White
  42.                 geometry Box {
  43.                     size 2.86 0.4 0.6
  44.                 }
  45.             }
  46.         },
  47.     # Right Roof
  48.         DEF LeftRoof Transform {
  49.             translation 1.15 7.12 0.0
  50.             rotation 0.0 0.0 1.0  -0.524
  51.             children USE Roof
  52.         }
  53.     ]
  54. }
  55.